/** INPUT:
 *        ShowHideDiv   - the id of the div that is to be toggled
 *        switchTextDiv - the id of the a href that starts the toggle
 */
function toggle(showHideDiv, switchTextDiv) {
	var ele = document.getElementById(showHideDiv);
	var text = document.getElementById(switchTextDiv);
	if(ele.style.display == "block") {
    		ele.style.display = "none";
//		text.innerHTML = "show";
  	}
	else {
		ele.style.display = "block";
//		text.innerHTML = "hide";
	}
} 

/**INPUT:
 *       divID      - id of DIV where elements are stored in
 *       checkBoxID - id of the element that started this event
 *       checkBoxName - name of the inputs to retrieve values of
 *       
 *        Function toggles select for the matching groups of checkboxes, and toggles the google maps events
 */
function toggleYear(divID, checkBoxID, checkBoxName) {

	var cb = document.getElementById(divID).getElementsByTagName('input');
    	for (var i = 0; i < cb.length; i++) {
		cb[i].checked = document.getElementById(checkBoxID).checked;
		var obj = document.getElementsByName(checkBoxName).item(i);
		toggleGroup(obj.value);
	}
}






